(function($){
    
    /**
     * Detects whether an element is checked or not.
     * @param arg1 - selector for specific element.
     * @return boolean
     */
    
    $.fn.is_checked = function(arg1){
        var select = (arg1 == undefined) ? true : ((this.is(arg1) ? true : false));        
        if(this.attr("checked")!=undefined && select)return true;
        return false;
    }
    
})(jQuery)

